package rhc.taskSchedule.command;

import rhc.discribute.node.host.Host;

/**命令执行器
 * @author rhc
 *
 */
public interface CommandExecuter {

	/**执行一个命令
	 * @param command
	 * @param host
	 * @throws Exception
	 */
	void executeCommand(String command,Host host) throws Exception;
	
	/**执行运行命令
	 * @param runningId
	 * @param host
	 * @throws Exception
	 */
	void executeRunCommand(String runningId,Host host) throws Exception; 
	
	/**执行停止命令
	 * @param runningId
	 * @param host
	 * @throws Exception
	 */
	void executeStopCommand(String runningId,Host host) throws Exception;
	
	/**执行暂停命令
	 * @param runningId
	 * @param host
	 * @throws Exception
	 */
	void executePauseCommand(String runningId,Host host) throws Exception;
	
	/**执行恢复命令
	 * @param runningId
	 * @param host
	 * @throws Exception
	 */
	void executeRegainCommand(String runningId,Host host) throws Exception;
	
}
